package membermanage.model.service;

import java.util.List;

import membermanage.dto.AuthorityDTO;
import membermanage.model.dao.AuthorityDAO;

public class AuthorityService {
	private AuthorityDAO dao;

	public AuthorityService(AuthorityDAO dao) {
		this.dao = dao;
	}
	
	public List getAllAuthority(){
		return dao.getAllAuthority();
	}
	
	public void insertAuthority(AuthorityDTO dto){
		dao.insertAuthority(dto);
	}
}
